package com.datatraffic.broadcastservices;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;

public class ServicioAlarma extends Service
{
	Alarm alarm = new Alarm();
	public void onCreate()
	{
		super.onCreate();       
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) 
	{
		try
		{
			alarm.SetAlarm(ServicioAlarma.this,intent);
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
		return START_STICKY;
	}



	public void onStart(Context context,Intent intent, int startId)
	{
		try
		{
			alarm.SetAlarm(context,intent);
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
	}

	@Override
	public IBinder onBind(Intent intent) 
	{
		return null;
	}
}